<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>{$site_info.site_seo_title|default=''}</title>
    <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}"/>
    <meta name="description" content="{$site_info.site_seo_description|default=''}"/>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <link rel="stylesheet" href="/static/fly/css/global.css">
</head>
<body>

{include file='common/header' /}

{include file='common/nav' /}

<div class="layui-container fly-marginTop">
    <div class="fly-panel">
        <div class="fly-none">
            <h2><i class="iconfont icon-tishilian"></i></h2>
            <div id="message"></div>
            <p>
                <a class="layui-btn layui-btn-normal" href="https://api.huoxun.cc/user/recharge">支付成功</a>
                <a class="layui-btn layui-btn-danger" href="https://api.huoxun.cc/user/recharge">支付失败</a>
            </p>
        </div>
    </div>
</div>

{include file='common/footer' /}

<script>
    layui.use('jquery', function () {
        var $ = layui.$;
        // 获取Url中的参数对应的值
        window.getUrlParam = function(key) {
            let params = new URLSearchParams(window.location.search);
            return params.get(key);
        }
        let message = '订单编号：' + getUrlParam('out_trade_no') + '  支付金额：' + getUrlParam('total_amount')
            + '  支付时间：' + getUrlParam('timestamp');
        $('#message').html(message);
        console.log();
    });
</script>

</body>
</html>
